home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
ezzcomm.zip
/
CHANGEPW.T
< prev
next >
Wrap
Text File
|
1991-02-16
|
1KB
|
25 lines
: EZ-ZCOMM Copyright 1991 by Roger E. Hough, All Rights Reserved.
: Licensed for use at your own risk without fee. Altered versions,
: when distributed, must be clearly marked as altered and accompanied
: by the originals.
accept s0 "\r\nNew password for '%remote': ";if !%s0 return
new:
if r w;close
display inhibit;open -!g %lib/%ZCUSER.ids;display noinhibit;if !t return
ki;create -yS!i %lib/%ZCUSER.new
next:
setc z0 \032;grab s1;ife !t goto eof;if Iz0,s1 closetx;goto eof
split s1 , , ""
if %s0&&Iz0,remote sets s1 "%z0,%s0";ife %z2 sets s1 "%s1,%z2";set s0 ""
echof "\T%s1";goback next
eof:
if r w;close
if c ki;create -+S!i %n9/ZC%d%ano.LOG
if %s0 del %lib/%ZCUSER.new;lput "Entry for '%remote' not found\r\n";return
if !f%lib/%ZCUSER.new lput "Error creating '%lib/%ZCUSER.new' - aborted\r\n\n";return
if f%lib/%ZCUSER.old del %lib/%ZCUSER.old
obey "!~move %lib/%ZCUSER.ids %lib/%ZCUSER.old"
obey "!~move %lib/%ZCUSER.new %lib/%ZCUSER.ids"
lput "Password for '%remote' updated in '%lib/%ZCUSER.ids'\r\n\n"
return